<?php
use Illuminate\Support\Facades\Route;


use App\Http\Controllers\admin\IndexController;
use App\Http\Controllers\admin\TestController;
use App\Http\Controllers\admin\RentingController;
use App\Http\Controllers\Api\lak\DrokerController;
use App\Http\Controllers\admin\lak\LookHouse;
Route::group(['namespace'=>'admin'],function (){
    Route::post('SMS', [IndexController::class, 'SMS']);//短信发送
    Route::post('UseRegister', [IndexController::class, 'UseRegister']);//注册
    Route::get('WxEmpowerLogin', [IndexController::class, 'WxEmpowerLogin']);//微信登录

    Route::get('CreateIndex', [TestController::class, 'CreateIndex']);//创建es索引
    Route::get('search', [TestController::class, 'search']);//es搜索
    Route::get('EsHistory', [TestController::class, 'EsHistory']);//es历史搜索记录
    Route::get('EsRank', [TestController::class, 'EsRank']);//es搜索排行榜 从高到低
    Route::get('EsRankZrange', [TestController::class, 'EsRankZrange']);//es搜索排行榜 从低到高
    Route::get('SearchDoc', [TestController::class, 'SearchDoc']);


    Route::post('Mortgage', [RentingController::class, 'Mortgage']);//房贷计算
    Route::get('RoomList', [RentingController::class, 'RoomList']);//房源列表
    Route::get('RoomDetail', [RentingController::class, 'RoomDetail']);//房源详情
    Route::post('RoomAdd', [RentingController::class, 'RoomAdd']);//房源添加
    Route::get('RoomShowUpdate', [RentingController::class, 'RoomShowUpdate']);//房源编辑页面
    Route::post('RoomUpdate', [RentingController::class, 'RoomUpdate']);//房源编辑
    Route::get('Roomdel', [RentingController::class, 'Roomdel']);//房源软删除
    Route::post('OssUploadFile', [RentingController::class, 'OssUploadFile']);//阿里云上传
    Route::get('RoomListFree', [RentingController::class, 'RoomListFree']);//免费看房列表
    Route::get('RoomDetailFree', [RentingController::class, 'RoomDetailFree']);//免费看房详情
    Route::get('Reservation', [RentingController::class, 'Reservation']);//预约免费看房
    Route::post('ReservationAdd', [RentingController::class, 'ReservationAdd']);//预约免费看房
    Route::get('ReservationList', [RentingController::class, 'ReservationList']);//预约免费看房列表

    Route::get('DrokerList', [DrokerController::class, 'DrokerList']);//经纪人列表

    Route::post('FindHousePublish', [LookHouse::class, 'FindHousePublish']);//找房发布
    Route::get('FindHouseList', [LookHouse::class, 'FindHouseList']);//找房列表


});
